import request from '@/utils/request'

/**
 * 添加充值记录
 * @param data
 * @returns {AxiosPromise}
 */
export function addMoney(data) {
  return request({
    url: '/recharge',
    method: 'post',
    data
  })
}
export function selectRecharge(pageNum, pageSize, memberId) {
  return request({
    url: '/recharge',
    method: 'get',
    params: {
      pageNum: pageNum,
      pageSize: pageSize,
      memberId: memberId
    }
  })
}
export function update(data) {
  return request({
    url: '/recharge',
    method: 'put',
    data
  })
}
export function deleteById(id) {
  return request({
    url: '/recharge/' + id,
    method: 'delete'
  })
}
export function selectMemberById(data) {
  return request({
    url: '/member/selectMember',
    method: 'post',
    data
  })
}
